package com.javakc.mes.instruction.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
@ApiModel(value = "调度指令库管理 -实体")
@TableName(value = "mes_instruction")
public class Instruction {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id")

    private int id;


    @ApiModelProperty(value = "指令名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "指令优先级")
    @TableField(value = "priority")
    private int priority;


    @ApiModelProperty(value = "专业类型")
    @TableField(value = "in_type")
    private String inType;


    @ApiModelProperty(value = "指令描述")
    @TableField(value = "in_describe")
    private String inDescribe;


    @ApiModelProperty(value = "创建时间", example = "2022-12-12 9:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss", timezone = "GMT+8")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间", example = "2022-12-12 9:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss", timezone = "GMT+8")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
